Redis Caching
Description
The application uses a custom implementation for Redis for caching (CacheManager.java).
Usage
Save an Object
CacheManager.saveObject(String key, long lifespanInSeconds, Object value)
key: Key used to reference the ObjectlifespanInSeconds: Expiry time in seconds from nowvalue: The java object to store
Get an Object
CacheManager.getObject(String key, Class<T> clazz)
key: Key used to reference the Objectclazz: Class of the object for type-casting
Delete an Object
CacheManager.deleteKey(String key)
key: Key used to reference the Object
Clear all Objects
CacheManager.clearAll()